/*!	brief	The behaviour class is an virtual class. The developper must create another class, make it inherit from behaviour and attach it to an entities
 *  		to determine how an entity must interact with the application. To do so, the user must fill the Update function, wich is called at each frame
 *			refresh by the Applications static class
 */
 
Behaviour	=	function()
{
	/************************************/
	/*			Properties				*/
	/************************************/
	
		this.m_Entity;								/*!< Store the Entity linked to the current Behaviour	*/
		this.m_Behaviours	=	new Array();		/*!< A Behaviour is alowed to have sub Behaviour	*/	
		
	/************************************/
	/*			Constructor				*/
	/************************************/
}

Behaviour.prototype.Update	=	function()
{
	console.log("Update");

	if (this.m_Behaviours.length>0)
	{
		for( var i = 0; i< this.m_Behaviours.length; i++)
		{
			this.m_Behaviours[i].Update();
		}
	}
}

